﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Sisocana.Core.Models.SiteModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Configure
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContent" runat="server">
    <%--para el menu para el menu--%>
    	
    <link href="../../Content/tabbedContent.css" rel="stylesheet" type="text/css"/>
	<script src="../../Scripts/tabbedContent.js" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery-ui-1.8.11.js") %>" type="text/javascript"></script>
    <link href="<%: Url.Content("~/Content/themes/base/jquery.ui.all.css") %>" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("p a, input:submit,input:file ").button();
        });
    </script>
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/multiplemarkersmap.js") %>" type="text/javascript"></script>

<h2>Site Configuration</h2>
 <fieldset>
    <% Html.RenderPartial("MenuEditSite", Model.id); %>

    <h3>Basic Configuration</h3>

<% Html.EnableClientValidation(); %>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>

        <div id="containerCenter">
            <div id="leftCenter">
                <%: Html.HiddenFor(model =>model.id) %>
                <%: Html.HiddenFor(model =>model.estado) %>
                <div class="editor-label">           
                    <%: Html.LabelFor(model => model.nombreCatastrofe, "Catastrophe Name")%>
                </div>
                <div class="editor-label">
                    <%: Html.TextBoxFor(model => model.nombreCatastrofe, new { rows = 1 })%>
                    <%: Html.ValidationMessageFor(model => model.nombreCatastrofe) %>
                </div>

                <div class="editor-label">
                    <%: Html.LabelFor(model => model.tituloWeb, "Site Title")%>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.tituloWeb)%>
                    <%: Html.ValidationMessageFor(model => model.tituloWeb) %>
                </div>

                <div class="editor-label">
                    <%: Html.LabelFor(model => model.subtituloWeb, "Site Subtitle")%>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.subtituloWeb)%>
                    <%: Html.ValidationMessageFor(model => model.subtituloWeb) %>
                </div>

                <div class="editor-label">
                    <%: Html.LabelFor(model => model.descripcion, "Description") %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.descripcion)%>
                    <%: Html.ValidationMessageFor(model => model.descripcion) %>
                </div>
            </div>
            <div id="rightCenter">
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.fecha, "Catastrophe Date")%>
                </div>

                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.fecha)%>
                    <%: Html.ValidationMessageFor(model => model.fecha) %>
                </div>
                <script language="javascript" type="text/javascript">
                    $(document).ready(function () {
                        $("#fecha").datepicker();
                    });
                </script>
        
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.subdominio, "Subdomain") %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.subdominio) %>
                    <%: Html.ValidationMessageFor(model => model.subdominio) %>
                </div>

                <div class="editor-label">
                    <%: Html.LabelFor(model => model.mensajeHeader, "Header Message") %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.mensajeHeader)%>
                    <%: Html.ValidationMessageFor(model => model.mensajeHeader) %>
                </div>

                <div class="editor-label">
                    <%: Html.LabelFor(model => model.mensajeFooter, "Footer Message") %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.mensajeFooter)%>
                    <%: Html.ValidationMessageFor(model => model.mensajeFooter) %>
                </div><br/> 
            </div>
        </div>
        <div>       
            <% Html.RenderAction("showSiteAdmin", "Site", new { siteId = Model.id }); %>
        </div>      
        <p>
            <input type="submit" value="Save changes" />
        </p>
    </fieldset>
<% } %>
</asp:Content>
